package com.coolwen.dao;

import com.coolwen.entity.Pager;
import com.coolwen.entity.Resource;
import com.coolwen.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUserByUserName(String userName);

    List<User> ListUser();

    User loadUserRole(Integer uid);

    List<Resource> loadUserRes(Integer uid);

    int updateUserLtime(@Param("id") Integer uid, @Param("loginData") Date date);

       List<User> find(Map<String, Object> params);
 //   List<User> find(@Param("name") String name);

        int find_count(Map<String, Object> params);
 //   int find_count(@Param("name") String username);


}